/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/accelerometer.html#wxstartaccelerometerobject)
 */

export default function start_accelerometer() {
	return new Promise<boolean>((resolve, reject) => {
		wx.startAccelerometer({
			success() {
				resolve(true);
			},
			fail() {
				reject(false);
			}
		});
	});
}
